package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.Type;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TypeMapper {
    
    List<Type> getAllTypeQuery();
    
    Type getTypeById(Long id);
    
    Type getTypeByName(String name);
    
    int saveType(Type type);
    
    int updateType(Type type);
    
    void deleteType(Long id);
}
